{include file="Public:header" /}
<body>
<style>
    .checkbox_text{display: block; padding: 10px 0;}
</style>
<div class="wrap">
    <!--碎屑路径-->
    <div class="debris_nav">
        <ol class="breadcrumb">
            <li><a href="#">系统设置</a></li>
            <li class="active">网站设置</li>
        </ol>
    </div>
    <div class="blank"></div>
    <!--列表内容-->
    <div class="content" id="content_page">
        <form action="{:url('UserRole/setting_ok')}">
            <input type="hidden" name="id" value="{$res.id}">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_add">
            <tr>
                <td valign="top"></td>
                <td>
                    <div class="checkbox_text clearfix">
                        <label class="checkbox"><input name="" type="checkbox" value="">全选</label>
                    </div>
                </td>
            </tr>
            {volist name="$res['list']" id="vo"}
            <tr>
                <td valign="top">{$vo.title}</td>
                <td>
                    {volist name="$vo.sub" id="v"}
                    <div class="label  label-success">{$v.title}</div>
                    <div class="checkbox_text clearfix">
                        {volist name="$v.sub" id="sub"}
                        <label class="checkbox"><input name="auth_id[]" type="checkbox" value="{$sub.id}"  {if condition="strstr($res['auth'],''.$sub['id'].'') eq true "} checked {/if}>{$sub.title}</label>
                        {/volist}
                    </div>
                    {/volist}
                </td>
            </tr>
            {/volist}
            <tr>
            <tr>
                <td valign="top"></td>
                <td>
                    <input type="submit" class="btn" value="确定">
                </td>
            </tr>
            <tr>
        </table>
        </form>
    </div>
    <!--列表内容-->
</div>
</body>

</html>